# Some useful Unicode entities
# Non-Breaking Space
snippet nbs
	&nbsp;
# ←
snippet left
	&#x2190;
# →
snippet right
	&#x2192;
# ↑
snippet up
	&#x2191;
# ↓
snippet down
	&#x2193;
# ◆
snippet arrow
	◆
# ↩
snippet return
	&#x21A9;
# ⇤
snippet backtab
	&#x21E4;
# ⇥
snippet tab
	&#x21E5;
# ⇧
snippet shift
	&#x21E7;
# ⌃
snippet control
	&#x2303;
# ⌅
snippet enter
	&#x2305;
# ⌘
snippet command
	&#x2318;
# ⌦
snippet delete
	&#x2326;
# ⌫
snippet backspace
	&#x232B;
# ⎋
snippet escape
	&#x238B;
# Generic Doctype
snippet doctype HTML 4.01 Strict
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""
	"http://www.w3.org/TR/html4/strict.dtd">
snippet doctype HTML 4.01 Transitional
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""
	"http://www.w3.org/TR/html4/loose.dtd">
snippet doctype HTML 5
	<!DOCTYPE HTML>
snippet doctype XHTML 1.0 Frameset
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
snippet doctype XHTML 1.0 Strict
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
snippet doctype XHTML 1.0 Transitional
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
snippet doctype XHTML 1.1
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
# HTML Doctype 4.01 Strict
snippet docts
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""
	"http://www.w3.org/TR/html4/strict.dtd">
# HTML Doctype 4.01 Transitional
snippet doct
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""
	"http://www.w3.org/TR/html4/loose.dtd">
# HTML Doctype 5
snippet doct5
	<!DOCTYPE HTML>
# XHTML Doctype 1.0 Frameset
snippet docxf
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
# XHTML Doctype 1.0 Strict
snippet docxs
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
# XHTML Doctype 1.0 Transitional
snippet docxt
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
# XHTML Doctype 1.1
snippet docx
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
snippet html
	<html>
	${1}
	</html>
snippet xhtml
	<html xmlns="http://www.w3.org/1999/xhtml">
	${1}
	</html>
snippet body
	<body>
		${1}
	</body>
snippet head
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"`Close()`>

		<title>${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
		${2}
	</head>
snippet title
	<title>${1:`substitute(Filename('', 'Page Title'), '^.', '\u&', '')`}</title>${2}
snippet style
	<style type="text/css" media="${1:screen}">
		${2}
	</style>${3}
snippet base
	<base href="${1}" target="${2}"`Close()`>
snippet div
	<div id="${1:name}">
		${2}
	</div>
# Embed QT Movie
snippet movie
	<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
	 codebase="http://www.apple.com/qtactivex/qtplugin.cab">
		<param name="src" value="$1"`Close()`>
		<param name="controller" value="$4"`Close()`>
		<param name="autoplay" value="$5"`Close()`>
		<embed src="${1:movie.mov}"
			width="${2:320}" height="${3:240}"
			controller="${4:true}" autoplay="${5:true}"
			scale="tofit" cache="true"
			pluginspage="http://www.apple.com/quicktime/download/"
		`Close()[1:]`>
	</object>${6}
snippet fieldset
	<fieldset id="$1">
		<legend>${1:name}</legend>

		${3}
	</fieldset>
snippet input
	<input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="${3}"`Close()`>${4}
snippet label
	<label for="${2:$1}">${1:name}</label><input type="${3:text/submit/hidden/button}" name="${4:$2}" value="${5}" id="${6:$2}"`Close()`>${7}
snippet link
	<link rel="${1:stylesheet}" href="${2:/css/master.css}" type="text/css" media="${3:screen}" charset="utf-8"`Close()`>${4}
snippet mailto
	<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>
snippet meta
	<meta name="${1:name}" content="${2:content}"`Close()`>${3}
snippet opt
	<option value="${1:option}">${2:$1}</option>${3}
snippet optt
	<option>${1:option}</option>${2}
# add by alex	 
snippet gb
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
snippet ut
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
snippet bb
	<strong>${1}</strong>
snippet em
	<em>${1}</em>
snippet h1
	<h1 class="${1}">${2}</h1>
snippet h2
	<h2 >${1}</h2>
snippet h3
	<h3 >${1}</h3>
snippet h4
	<h4 >${1}</h4>
snippet h5
	<h5 >${1}</h5>
snippet h6
	<h6 >${1}</h6>
snippet brj
	<br />
snippet p
	<p >${1}</p>
snippet pc
	<p class="${1:price}">${2:info}</p>
snippet nb
	&nbsp;
snippet a
	<a href="#" >${1}</a>
snippet av
	<a href="javascript:void(0);" >${1}</a>
snippet ta
	target="_blank"
snippet tt
	title="${1}"
snippet img
	<img src="http://ppms.paipaioa.com/img/demo/${1}.png" />
snippet did
	<div id="${1}">
		${2}
	</div>
snippet dc
	<div class="${1}">
		${2}
	</div>
snippet sp
	<span class="${1}">${2}</span>
snippet id
	id="${1}"
snippet cls
	class="${1}"
snippet pre
	<pre>${1}</pre>
snippet list
	<ul>
		<li>${1:list item information longer longer longer longer}</li>
	</ul>
snippet lia
	<li><a href="#">${1}</a></li>
snippet lis
	<li>${1}</li>
snippet listo
	<ol>
		<li>${1:list item information longer longer longer longer}</li>
	</ol>
snippet listd
	<dl>
		<dt>${1}</dt>
	</dl>
snippet dt
	<dt>${1}</dt>
snippet dd
	<dd>${1}</dd>
snippet form
	<form method="post" action="">
		${1}
	</form>
snippet forma
	<form method="post" action="" enctype="multipart/form-data">
		${1}
	</form>
snippet ss
	<script type="text/javascript">
		${1}
	</script>
snippet field
	<fieldset>
		<legend>${1}</legend>
	</fieldset>
snippet la
	<label>${1}</label>
snippet txt
	<input type="text" value="" autocomplete="off"/>
snippet btn
	<input type="button" value="click"/>
snippet submit
	<input type="submit" value="submit"/>
snippet select
	<select >
		<option value="" selected="selected">${1}</option>
		<option value="" ></option>
	</select>
snippet option
	<option value="" >${1}</option>
snippet radio
	<input type="radio" value=""/>
snippet checkbox
	<input type="checkbox" />
snippet textarea
	<textarea id="">${1}</textarea>
snippet reset
	<input type="reset" />
snippet pw
	<input type="password" />
snippet hn
	<input type="hidden" value=""/>
snippet but
	<button>${1}</button>
snippet table
	<table >
		<thead>
			<tr> <th>${1}</th> </tr>
		</thead>
		<tbody>
			<tr>
				<td></td>
			</tr>
		</tbody>
	</table>
snippet tr
	<tr>
		 ${1}
	</tr>
snippet td
	<td>${1}</td>
snippet cap
	<caption>${1}</caption>
snippet col
	<colgroup>
		<col width="20%" />
	</colgroup>
snippet frm
	<iframe id="" name="" src="${1}.html" scrolling="no" frameborder="0"></iframe>
snippet s
	<script type="text/javascript" src="${1}"></script>
snippet cv
	<!-- add by colinivy -->
snippet lg
	&lt;${1}&gt;
snippet code
	<code>${1}</code>
snippet i
	<i>${1:&nbsp;}</i>${2}
snippet ic
	<i class="${1}">&nbsp;</i>
snippet hf
	hidefocus="true"
snippet ph
	placeholder="${1}"
snippet brs
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
	Here is lots of text just for test <br /><br /><br /><br /><br />
snippet cc1
	<link rel="stylesheet" rev="stylesheet" href="http://imgcache.qq.com/vipstyle/vipshop_v1/act/${1}/style.css" media="screen" type="text/css" />
snippet j1
	<!--S ${1:CMT} -->
	${2}
	<!--E $1 -->
snippet j11
	<!-- BEGIN ${1:xList} -->
	${2}
	<!-- END $1 -->
snippet j2
	<!--E ${1} -->
snippet ??
	<?php ${1} ?>
snippet acm
	autocomplete="off"
snippet gname
	雅诗兰黛鲜活营养精华水天天折扣快来抢标题还有很长很长长长长长长长长长
# ==================================================================
# css snippet for edit inline-CSS in html file
# ==================================================================
snippet **
	* {margin:0;padding:0;list-style:none;}
snippet z
	zoom:1;
snippet zi
	z-index:${1:10};${2}
snippet font
	font:${1:normal} ${2:12}px/${3:21}px ${4:Arial};${5}
snippet ff
	font-family: Simsun;
snippet fw
	font-weight:${1:300};${2}
snippet fs
	font-size:${1:12}px;${2}
snippet pa
	padding:${1:0}px;${2}
snippet pa2
	padding:${1:0}px ${2:0}px;${3}
snippet pa3
	padding:${1:0}px ${2:0}px ${3:0}px;${4}
snippet pa4
	padding:${1:0}px ${2:0}px ${3:0}px ${4:0}px;${5}
snippet pt
	padding-top:${1:0}px;${2}
snippet pb
	padding-bottom:${1:0}px;${2}
snippet pl
	padding-left:${1:0}px;${2}
snippet pr
	padding-right:${1:0}px;${2}
snippet ma
	margin:${1:0}px;${2}
snippet ma2
	margin:${1:0}px ${2:0}px;${3}
snippet ma3
	margin:${1:0}px ${2:0}px ${3:0}px;${4}
snippet ma4
	margin:${1:0}px ${2:0}px ${3:0}px ${4:0}px;${5}
snippet mt
	margin-top:${1:0}px;${2}
snippet mb
	margin-bottom:${1:0}px;${2}
snippet ml
	margin-left:${1:0}px;${2}
snippet mr
	margin-right:${1:0}px;${2}
snippet bg
	background:url(${1:img/}.png) left top no-repeat;${2}
snippet bgi
	background-image:url(${1:img/}.png);${2}
snippet bc
	background-color:#${1:000};${2}
snippet br
	background-repeat:no-repeat;
snippet brx
	background-repeat:repeat-x;
snippet bry
	background-repeat:repeat-y;
snippet bp
	background-position:${1:0}px ${2:0}px;${3}
snippet h
	height:${1}px;${2}
snippet hh
	height:100%;
snippet w
	width:${1}px;${2}
snippet ww
	width:100%;
snippet co
	color:#${1};${2}
snippet db
	display:block;
snippet dn
	display:none;
snippet vs
	visibility:visible;
snippet vh
	visibility:hidden;
snippet dib
	display:inline-block;
snippet di
	display:inline;
snippet dta
	display:table;
snippet dtc
	display:table-cell;
snippet vam
	vertical-align:middle;
snippet vat
	vertical-align:top;
snippet tac
	text-align:center;
snippet tal
	text-align:left;
snippet tar
	text-align:right;
snippet ti
	text-indent:${1:10}px;${2}
snippet tdn
	text-decoration:none;
snippet tdu
	text-decoration:underline;
snippet lh
	line-height:${1}px;${2}
snippet boco
	border-collapse:collapse;
snippet bo
	border:1px solid #${1:eee};${2}
snippet bow
	border-width:${1:1}px;${2}
snippet bos
	border-style:solid;
snippet boc
	border-color:#${1:eee};${2}
snippet bocs
	border-color:#EEE #BBB #BBB #EEE;
snippet bo0
	border:none;
snippet bot
	border-top:1px solid ${1};${2}
snippet bot0
	border-top:none;
snippet bob
	border-bottom:1px solid ${1};${2}
snippet bob0
	border-bottom:none;
snippet bol
	border-left:1px solid ${1};${2}
snippet bol0
	border-left:none;
snippet bor
	border-right:1px solid ${1};${2}
snippet bor0
	border-right:none;
snippet fl
	float:left;
snippet fr
	float:right;
snippet fn
	float:none;
snippet cb
	clear:both;
snippet oh
	overflow:hidden;
snippet oa
	overflow:auto;
snippet ov
	overflow:visible;
snippet poa
	position:absolute;
snippet pox
	position:fixed;
snippet por
	position:relative;
snippet otn
	outline:none;
snippet l
	left:${1}px;${2}
snippet r
	right:${1}px;${2}
snippet t
	top:${1}px;${2}
snippet b
	bottom:${1}px;${2}
snippet ls
	letter-spacing:${1:2}px;${2}
snippet fter
	filter:alpha(opacity=${1:5}0);opacity:0.$1;${2}
snippet ws
	white-space:${1:nowrap}${2:normal};${3}
snippet cf
	.cf {zoom:1;}
	.cf:after {content:' ';display:block;clear:both;height:0;visibility:hidden;}
snippet af
	${1:.x}:after {content:'';display:block;clear:both;height:0;visibility:hidden;}
snippet ms
	"Microsoft YaHei"
snippet cp
	cursor:pointer;
snippet www
	word-wrap:${1:break-word}${2:break-all};${3}
snippet wb
	word-break:break-all;
snippet bra
	-moz-border-radius:${1:4}px;-webkit-border-radius:$1px;border-radius:$1px;${2}
snippet bs
	-moz-box-shadow:${1:2}px ${2:2}px ${3:3}px #${4:333};-webkit-box-shadow:$1px $2px $3px #$4;box-shadow:$1px $2px $3px #$4;${5}
snippet to
	overflow:hidden;text-overflow:ellipsis;word-break:keep-all;white-space:nowrap;
# ==================================================================
# js snippet for edit inline-js in html file
# ==================================================================
# Prototype
snippet proto
	${1:class_name}.prototype.${2:method_name} =
	function(${3:first_argument}) {
		${4:// body...}
	};
# Function
snippet fu
	function (${1}) {
		${2}
	}
snippet fun
	function ${1:function_name} (${2:argument}) {
		${3:// body...}
	}
# Anonymous Function
# if
snippet if
	if (${1}) {
		${2}
	}
# if ... else
snippet ife
	if (${1}) {
		${2}
	}else{
		${3}
	}
# switch
snippet switch
	switch(${1:expression}) {
		case '${3:case}':
			${4:// code}
			break;
		${5}
		default:
			${2:// code}
	}
# case
snippet case
	case '${1:case}':
		${2:// code}
		break;
	${3}
# for (...) {...}
snippet for
	for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
		${4:$1[$2]}
	};
# for (...) {...} (Improved Native For-Loop)
snippet forr
	for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) {
		${4:$1[$2]}
	};
# while (...) {...}
snippet wh
	while (${1:/* condition */}) {
		${2:/* code */}
	}
# do...while
snippet do
	do {
		${2:/* code */}
	} while (${1:/* condition */});
# Object Method
snippet :fx
	${1:method_name}: function(${2:attribute}) {
		${4}
	}${3:,}
# setTimeout function
snippet timeout
	setTimeout(function() {${3}}${2}, ${1:10};
# Get Elements
# Get Element
snippet gett
	getElementBy${1:Id}('${2}')${3}

# the following content add by alex
snippet el
	else {
		${1}
	}
snippet eif
	else if (${1}){
		
	}
snippet win
	window.${1}
snippet we
	window.event${1}
snippet f
	for (var i = 0, k ; k = ${1} ; i++ ) {

	}
snippet fo
	for (var i = 0, le = ${1}.length ; i < le; i++ ) {

	}
snippet fi
	for (var i in ${1}) {

	}
snippet dw
	do {

	}
	while (${1});
snippet dow
	document.write(${1});
snippet v
	var ${1}
snippet e
	= ${1} ;
snippet eq
	== 
snippet neq
	!= 
snippet at
	alert(${1});
snippet gi
	getElementById('${1}')
snippet gt
	getElementsByTagName('${1}')
snippet dgi
	document.getElementById(${1})
snippet dgt
	document.getElementsByTagName('${1}')
snippet ga
	getAttribute('${1}') ;
snippet sa
	setAttribute('${1}') ;
snippet nn
	nodeName${1}
snippet nv
	nodeValue${1}
snippet cn
	childNodes${1}
snippet ns
	nextSibling${1}
snippet pn
	parentNode${1}
snippet le
	length${1}
snippet d
	document${1}
snippet de
	documentElement
snippet fc
	firstChild${1}
snippet lc
	lastChild${1}
snippet ac
	appendChild(${1}) ;
snippet rc
	removeChild(${1}) ;
snippet getid
	var get = function (e) {return document.getElementById(e);} ;
snippet sid
	$('#${1}')
snippet dcf
	document.createDocumentFragment()
snippet dce
	document.createElement('${1}')
snippet dct
	document.createTextNode('${1}')
snippet t1
	alert('OK!');
snippet t2
	alert('erro!');
snippet ft
	filters[0].Opacity ${1}
snippet re
	return ${1} ;
snippet sstr
	substring(${1})
snippet ael
	addEventListener(${1}, , false) ;
snippet aev
	attachEvent(${1}, ) ;
snippet rel
	removeEventListener(${1}, , false) ;
snippet dev
	detachEvent(${1}, ) ;
snippet st
	setTimeout(${1}, 1000);
snippet si
	setInterval(${1}, 1000);
snippet ewe
	e = window.event || e ;
snippet oc
	onclick${1}
snippet try
	try {
		${1}
	}catch (e){}
snippet civy
	console.log(${1}) ;
snippet ar
	arguments
snippet ob
	Object
snippet rx
	responseXML
snippet rt
	responseText
snippet dix
	display = '${1}' ;
snippet ih
	innerHTML
snippet prt
	prototype
snippet prtt
	prototype = ${1} ;
snippet tof
	typeof ${1}
snippet onv
	onmouseover
snippet ont
	onmouseout
snippet nt
	nodeType
snippet lt
	< ${1}
snippet nlt
	> ${1}
snippet za
	+ ${1}
snippet zp
	- ${1}
snippet get
	get('${1}')
snippet ua
	navigator.userAgent
snippet bod
	getBoundingClientRect()
snippet cc
	tcDebug.run(${1});
snippet spl
	split('${1}')
snippet io
	indexOf('${1}')
snippet ts
	 (+ new Date()) 
